package com.xhs.annotation.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @desc: 获取接口名称和接口地址
 * @projectName: annotation
 * @author: xhs
 * @date: 2023/5/6 13:27
 * @version: JDK 1.8
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ApiUrl {

    /**
     * 接口名称
     *
     * @return
     */
    String name();

    /**
     * 接口地址
     *
     * @return
     */
    String url();
}
